<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
	<class name="Insesoft.BusinessEntities.Orden,Insesoft.BusinessEntities" table="Orden">

		<id name="Id" column="Id" type="Int32" unsaved-value="0">
			<generator class="native"/>
		</id>
    <many-to-one name="Empresa" column="EmpId" class="Insesoft.BusinessEntities.Empresa,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
    <many-to-one name="Cotizacion" column="CotizacionId" class="Insesoft.BusinessEntities.Cotizacion,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
    <property column="NumPedido" type="String" name="NumPedido" length="20" />		
		<property column="FecInicio" type="DateTime" name="FecInicio" />
		<property column="FecFinal" type="DateTime" name="FecFinal" />				
	</class>
</hibernate-mapping>
